import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: '丹身乐缘',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  tabBar: {
    custom: true,
    color: '#999999',
    selectedColor: '#018d71',
    backgroundColor: '#F8F8F8',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '24px',
    spacing: '3px',
    list: [
      {
        "pagePath": "pages/tabbar/index",
        "text": "首页",
        "icon": "icon_01",
        "selectedIcon": "icon_s_01",
        "iconType": "local"
      },
      {
        "pagePath": "pages/tabbar/appointment",
        "text": "约会广场",
        "icon": "icon_02",
        "selectedIcon": "icon_s_02",
        "iconType": "local"
      },
      {
        "pagePath": "pages/tabbar/register",
        "text": "活动广场",
        "icon": "icon_03",
        "selectedIcon": "icon_s_03",
        "iconType": "local"
      },
      {
        "pagePath": "pages/tabbar/recommend",
        "text": "消息",
        "icon": "icon_04",
        "selectedIcon": "icon_s_04",
        "iconType": "local"
      },
      // {
      //   "pagePath": "pages/tabbar/talk",
      //   "text": "单身夜话",
      //   "icon": "icon_06",
      //   "selectedIcon": "icon_s_06",
      //   "iconType": "local"
      // },
      {
        "pagePath": "pages/tabbar/me",
        "text": "我的",
        "icon": "icon_05",
        "selectedIcon": "icon_s_05",
        "iconType": "local"
      }
    ],
  },
})
